﻿@model OrderModel.OrderProductVariantModel
@{
    //page title
    ViewBag.Title = string.Format(T("Admin.Orders.CancelPackage.Title").Text);
}

@using (Html.BeginForm("CancelPackage", "Order"))
{
    @Html.ValidationSummary(false)
    @Html.HiddenFor(model => model.OrderId)
    <div class="section-header">
        <div class="title">
            <img src="@Url.Content("~/subsites/Administration/Content/images/ico-sales.png")" alt="" />
            @T("Admin.Orders.CancelPackage.Title").Text --- @Html.ActionLink("(" + T("Admin.Orders.Shipments.Backtoorder") + ")", "Edit", new { id = Model.OrderId })
        </div>
        <div class="options">
        </div>
    </div>
    <div>
        <table width="100%">
            <tr>
                <td class="adminTitle">
                    @T("Admin.Logistics.Common.Fields.PackageId"):
                </td>
                <td class="adminData">
                    @Html.DisplayFor(model => model.Id)
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    @T("Admin.Orders.CancelPackage.CancelReason").Text @Html.RequiredHint():
                </td>
                <td class="adminData">
                    @Html.EditorFor(model => model.CancelReason)
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    @T("Admin.Orders.CancelPackageRefund") @Html.RequiredHint():
                </td>
                <td class="adminData">
                    @Html.EditorFor(model => model.IsRefund)
                </td>
            </tr>
        </table>
        <div class="clear">
        </div>
        <input type="submit" name="btnCancelPkgOpv" value="@T("Admin.Common.Cancel")" id="btnCancelPkgOpv" class="adminButton" onclick="return confirm('@T("Admin.Common.AreYouSure")    ');" />
    </div>
}